package com.btr.ivle.helper;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;

public class URLtoString {
    public static String get(URL url) throws Exception {
        URLConnection con = url.openConnection();
        BufferedReader in = new BufferedReader(new InputStreamReader(
        		con.getInputStream()));
        String inputLine;
        String s= in.readLine();
        while ((inputLine = in.readLine()) != null) 
            s += inputLine;
        in.close();
        return s;
    }
}
